Skip to main content
POST
/
v4
/
knowledge_graph
/
neo4j
/
task
/
Train Neo4J Task
curl --request POST \
  --url https://rag-prod.studio.lyzr.ai/v4/knowledge_graph/neo4j/task/ \
  --header 'Content-Type: multipart/form-data' \
  --header 'x-api-key: <api-key>' \
  --form 'schema_prompt=<string>' \
  --form 'extra_info=<string>' \
  --form file=@example-file
"Task successfully started."

Authorizations

x-api-key
string
header
required

Query Parameters

rag_id
string
required

The unique identifier (ID) of the RAG system to train (e.g., a 24-character hex string).

Example:

"654c602a46c3b6d4e28741b0"

Body

multipart/form-data
file
file

The file to process for Neo4j knowledge graph training.

schema_prompt
string | null

Allowed nodes and relationships for the knowledge graph.

extra_info
string | null

Additional information (e.g., as a JSON string).

Response

Successful Response (Training task started).

The response is of type string.

Example:

"Task successfully started."